package Practice.Practice_01;

public class SalariedEmployee extends Employee{
    private double monthlySalary;

    @Override
    public double earnings() {
        return monthlySalary;
    }
    public SalariedEmployee(String name,int number,MyDate birthday,double monthlySalary){
        super(name,number,birthday);
        this.monthlySalary=monthlySalary;
    }
    public String toString(){
        return super.toString();
    }
}
